﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace _12.Exercise
{
    class Program
    {
        static void Main(string[] args)
        {
            string url = "http://www.devbg.org/forum/index.php ";            
            GroupCollection text = Regex.Match(url, @"(.*?)://(.*?)(/.*)").Groups;
            for (int i = 1; i < text.Count; i++)
            {
                Console.WriteLine(text[i]);
            }          
        }
    }
}
